package com.ulook.lookplanet.common;

import android.app.Application;
import android.content.Context;

import com.ulook.lookplanet.data.model.BaseUser;

import org.litepal.LitePal;

/**
 * @author: L1998
 * @data: 2021/3/24
 * @description:
 */
public class LookPlanetApplication extends Application {

    private static Context context;
    //private static int currUserId;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        LitePal.initialize(this);
    }

    /**
     * 获取App上下文
     * @return
     */
    public static Context getContext(){
        return context;
    }


    /**
     * 设置全局用户id
     */
   /* public static void setCurrUserId(int id){
        currUserId = id;
    }*/

    /**
     * 获取当前用户id
     */
    /*public static int getCurrUserId(){
        return currUserId;
    }*/

}
